Page({
  onLoad() {
    const token = wx.getStorageSync('token');

    wx.reLaunch({
      url: token ? '/pages/home/home' : '/pages/login/login'
    });
  }
});
